package com.itcat.api;

import com.itcat.api.mysql.CmsPrefrenceAreaApi;
import com.itcat.mapper.CmsPrefrenceAreaMapper;
import com.itcat.mysql.pojo.CmsPrefrenceArea;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author Jerry Broker
 * @project_name rainbow-mall
 * @create 2022-04-03 14:27
 */
@DubboService
public class CmsPrefrenceAreaApiImpl implements CmsPrefrenceAreaApi {

    @Autowired
    private CmsPrefrenceAreaMapper cmsPrefrenceAreaMapper;

    /**
     * 获取所有商品优选
     * @return
     */
    @Override
    public List<CmsPrefrenceArea> listAll() {
        List<CmsPrefrenceArea> list = cmsPrefrenceAreaMapper.selectList(null);
        return list;
    }
}
